package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DishService {

    public Result addDish(@RequestBody DishDTO dishDTO);

    public Result page(DishPageQueryDTO pageQueryDTO);

    public Result DropByIds(@RequestParam List<Long> ids);

    public Result GetById(@PathVariable Long id);

    public Result Update(DishDTO dishDTO);

    public Result getByCategoryId(Long categoryId);
}
